package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.BookingRule;
import com.atguigu.yygh.model.hosp.Hospital;
import com.atguigu.yygh.vo.hosp.HospitalQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface HospitalService {
    void saveHospital(Map<String, Object> map);

    Hospital findHospitalByHoscode(Map<String, Object> map);
    Hospital findHospitalByHoscode(String hoscode);

    Page<Hospital> selectPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);

    void changeStatus(String id, Integer status);

    Hospital selectById(String id);

    String getHospitalName(String hoscode);


    List<Hospital> selectByNameLike(String name);

    BookingRule getBoookingRule(String hoscode);

}
